shitting bricks

to be extremely scared or freightened
> we got away before they caught us, man we were shitting bricks